PokemonHeldItemVersion

@Serializable
data class PokemonHeldItemVersion(val version: Handle.Named<Version>, val rarity: Int)(source)

The details of the version in which a Pokémon may be holding an item. See: https://pokeapi.co/docs/v2#pokemonhelditemversion

Parameters

version

The version in which the item is held.

rarity

The rarity of the held item in the version.

Constructors

Link copied to clipboard
constructor(version: Handle.Named<Version>, rarity: Int)

Properties

Link copied to clipboard
val rarity: Int
Link copied to clipboard